package cn.zhouyafeng.itchat4j.thread;

import cn.zhouyafeng.itchat4j.api.MessageTools;
import cn.zhouyafeng.itchat4j.core.Core;
import cn.zhouyafeng.itchat4j.utils.SleepUtils;

public class FileHelperHeartingThread implements Runnable {
    private Core core = Core.getInstance();
    @Override
    public void run() {
        while (core.isAlive()) {
            //发条空消息到文件助手，保证在线
            MessageTools.sendMsgById("", "filehelper");
            SleepUtils.sleep(60 * 1000); // 休眠60秒
        }
    }
}
